<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 声明相关的布尔值，表示今天是否下雨、是否适合出游等。 -->
		<script type="text/javascript">
			let rain=window.confirm("今天是否下雨?");
			
			if(rain==true){
				let willRain = true;
				if(willRain == true){
					console.log("下雨,不适合出游");
				}else {
					console.log("没下雨,适合出游");
				}
			}else{
				let willRain = false;
				if(willRain == true){
					console.log("下雨,不适合出游");
				}else{
					console.log("没下雨,适合出游");
				}
			}
		</script>
	</body>
</html>
